package com.beta.cms.common.until;

import java.io.File;

/**
 * 页面显示信息常量类
 * 
 * @author yjia
 * @version 2016年10月27日
 */
public class ContantStr {

	// 接口返回值中reason字段值
	public static final String SUCCESS_code = "200";

	public static final String SUCCESS = "success";

	public static final String FAILED = "failed";

	// 分页显示信息
	public static final String CURRENT_PAGE = "首页";

	public static final String PREVIOUSPAGE = "上一页";

	public static final String NEXTPAGE = "下一页";

	public static final String LAST_PAGE = "尾页";

	public static final int CURRENTPAGE = 1;

	public static final int PAGESIZE = 15;

	public static final String WEBCURRENTPAGE = "currentPage";

	public static final String WEBPAGESIZE = "pageSize";

	// 后台日志错误信息提示
	/**
	 * 通用错误
	 */
	public static final String GET_ERROR_KEY = "-0001";

	public static final String GET_ERROR_VALUE = "获取信息失败";

	public static final String UPDATE_ERROR_KEY = "-0002";

	public static final String UPDATE_ERROR_VALUE = "更新数据失败";

	public static final String DELETE_ERROR_KEY = "-0003";

	public static final String DELETE_ERROR_VALUE = "删除数据失败";

	public static final String INSERT_ERROR_KEY = "-0004";

	public static final String INSERT_ERROR_VALUE = "新增数据失败";

	public static final String GET_LIST_ERROR_KEY = "-0005";

	public static final String GET_LIST_ERROR_VALUE = "获取列表信息发生错误!";

	public static final String GET_MODEL_ERROR = "获取实体类信息发生错误!";

	public static final String resource_upload_text = "资源正在上传中...，可关闭弹窗继续上传。";
	
	public static final String SEND_MESSAGE_ERROR_KEY = "-0006";

	public static final String SEND_MESSAGE_ERROR_VALUE = "发送场景异常、请稍后重试!";
	
	public static final String ADD_NAME_ERROR_KEY = "-0007";

	public static final String ADD_NAME_ERROR_VALUE = "名称不能为空";

	// 系统常量
	public static final String CATALINA_BASE_PATH = System.getProperty("catalina.base") + File.separator;
	// 本地temp文件目录
	public static final String TEMP_PATH = CATALINA_BASE_PATH + "temp" + File.separator;

	// 资源文件目录

	public static final String SERVICE_BASE_PATH = "/";
	// 根目录
	public static final String RESOURCES_BASE_PATH = "base_path";
	// 默认目录
	public static final String RESOURCES_DEFAULT_DIRECTORY = "default_directory";
	// 未知资源
	public static final String RESOURCES_UNKNOWN_RES = "unknown_res";

	// 资源类型
	// 音频
	public static final String RESOURCES_AUDIO = "audio";
	// 视频
	public static final String RESOURCES_VIDEO = "video";
	// 文本
	public static final String RESOURCES_TEXT = "text";
	// 图片
	public static final String RESOURCES_PICTURE = "picture";
	// 语音指令
	public static final String AUDIO_COMMAND = "audio_command";

	/**
	 * 存放Authorization的header字段
	 */
	public static final String AUTHORIZATION = "authorization";
	// 登录用户存储key前缀
	public static final String FAN_USER_TOKEN_STRING = "FAN:USER:TOKEN:STRING:";
	// 登录用户超时时间
	public static final Long FAN_USER_TOKEN_TIME = 3600L;

	public static final String POSTFIX = ".zip";
	
	//文本图片 默认 时长
	public static final String RESOURCE_DEFAULT_LENGTH = "3000";

}
